﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_WaterLevel", DisableSyncStructure = true)]
	public partial class TWaterLevel {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 电池电压
		/// </summary>
		[JsonProperty, Column(Name = "batv", DbType = "decimal(18,2)")]
		public decimal? Batv { get; set; }

		/// <summary>
		/// 录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 信号强度
		/// </summary>
		[JsonProperty, Column(Name = "csq", DbType = "decimal(18,2)")]
		public decimal? Csq { get; set; }

		/// <summary>
		/// 液位深度
		/// </summary>
		[JsonProperty, Column(Name = "deep", DbType = "decimal(18,2)")]
		public decimal? Deep { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 芯片温度
		/// </summary>
		[JsonProperty, Column(Name = "temp", DbType = "decimal(18,2)")]
		public decimal? Temp { get; set; }

		[JsonProperty, Column(StringLength = 10)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 数据时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
